--------------------------------------------------------------------------
JSON:
--------------------------------------------------------------------------
Activities Alarms
[
	{
		"StartTime":"31.05.2013",
		"EndTime":"31.05.2013",
		"Group":"Motors",
		"Tag":"M38\\axAlarm",
		"Description":"M38 - GENERAL ALARM",
		"duration":"0 00:12:00",
		"count":1
	},
	{
		"StartTime":"30.05.2013",
		"EndTime":"30.05.2013",
		"Group":"Valves",
		"Tag":"V01\\axAlarm",
		"Description":"V01 - GENERAL ALARM",
		"duration":"0 00:00:10",
		"count":1
	},
	{
		"StartTime":"30.05.2013",
		"EndTime":"30.05.2013",
		"Group":"Valves",
		"Tag":"V01\\axOpen",
		"Description":"V01 - ALARM WHEN OPENING",
		"duration":"0 00:00:10",
		"count":1
	},
	{
		"StartTime":"30.05.2013",
		"EndTime":"30.05.2013",
		"Group":"Valves",
		"Tag":"V02\\axAlarm",
		"Description":"V02 - GENERAL ALARM",
		"duration":"0 00:39:17",
		"count":1
	},
	{
		"StartTime":"30.05.2013",
		"EndTime":"30.05.2013",
		"Group":"Valves",
		"Tag":"V02\\axClose",
		"Description":"V02 - ALARM WHEN CLOSING",
		"duration":"0 00:39:17",
		"count":1
	},
	{
		"StartTime":"30.05.2013",
		"EndTime":"30.05.2013",
		"Group":"Valves",
		"Tag":"V20\\axAlarm",
		"Description":"V20 - GENERAL ALARM",
		"duration":"0 00:00:10",
		"count":1
	},
	{
		"StartTime":"30.05.2013",
		"EndTime":"30.05.2013",
		"Group":"Valves",
		"Tag":"V20\\axOpen",
		"Description":"V20 - ALARM WHEN OPENING",
		"duration":"0 00:00:10",
		"count":1
	},
	{
		"StartTime":"30.05.2013",
		"EndTime":"30.05.2013",
		"Group":"Valves",
		"Tag":"V38\\axAlarm",
		"Description":"V38 - GENERAL ALARM",
		"duration":"0 00:39:17",
		"count":1
	},
	{
		"StartTime":"30.05.2013",
		"EndTime":"30.05.2013",
		"Group":"Valves",
		"Tag":"V38\\axClose",
		"Description":"V38 - ALARM WHEN CLOSING",
		"duration":"0 00:39:17",
		"count":1
	}
]
Activities Alarms Duration
[
	{
		"duration":"0 00:39:17:340",
		"start_time":"05/30/2013 14:58:02:033",
		"end_time":"15:37:19:373"
	},
	{
		"duration":"0 00:39:17:340",
		"start_time":"05/30/2013 14:58:02:033",
		"end_time":"15:37:19:373"
	}
]
--------------------------------------------------------------------------
Kratak opis:
--------------------------------------------------------------------------
Kontrola daje rezultate za alarme grupisane po tagovima kao i detaljan
opis trajanja alarma za odabranu grupu. 




--------------------------------------------------------------------------
Dodeljivanje vrednosti parametrima action i dataType
--------------------------------------------------------------------------
Potrebno je parametru action dodeliti jednu od sledecih vredosti:

1. alarms
2. alarmDuration

1. alarms
	Se parametrise time filter 
	kontrolom (vidi dole Koriscenje time filter kontrole)

	primer:
	?request=430&action=alarms&pStart=30.5.2013&pEnd=1.6.2013

2. alarmDuration
	Se parametrise tako sto se sa odabrane grupe alarma kao
	parametar proslede sledece vrednosti:

	1. pStart
	2. pEnd
	3. group (sa malim pocetnim slovom g)
	4. tag (sa malim pocetnim slovom t) Tag takodje mora imati jedan backslash

	primer:
	?request=430&action=alarmDuration&pStart=10.01.2013&pEnd=14.06.2013&group=Line10Bart&tag=AlarmsLine10\Bartelt02\Alarm16


--------------------------------------------------------------------------
Koriscenje time filter kontrole
--------------------------------------------------------------------------
Koriste se opcije time filter kontrole bez filtera



--------------------------------------------------------------------------
Greske
--------------------------------------------------------------------------
Ukoliko se pogresi pri parametrisanju kontrole stampa se poruka
{"Error": "430: Bad request"}

Ukoliko upit nema rezultata stampa se poruka
{"Error": "430: No results"}
--------------------------------------------------------------------------

